<?php include "conn.php";
$get_id= mysqli_real_escape_string($conn,$_GET['shop_id']);
$shop_res= "SELECT * FROM `biz_shop` where biz_shop.shop_id='$get_id'";
$shop_res = mysqli_query($conn,$shop_res);
$shopres = mysqli_fetch_assoc($shop_res);
$title = $shopres['name'];
?>
<?php include "header.php";?>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3"></script>
 <body>
<?php include "body_top.php";?>
<div id="main-content" >
<div style="width:240px;height:160px;border:1px solid gray" id="container" align="center"></div>
</div>
<?php include "footer.php";?>
<script type="text/javascript">
var map = new BMap.Map("container"); // 创建Map实例
var point = new BMap.Point(<?= $shopres['longitude']?>,<?= $shopres['latitude']?>); // 创建点坐标，你想要显示的城市的坐标
map.centerAndZoom(point,15); // 初始化地图,设置中心点坐标和地图级别。
</script>

